package com.mc.mcdubbo.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/**
 * Created mangcao with 2020/1/15 11:28
 * Description:
 */
@Slf4j
public class McUtil implements InitializingBean, BeanFactoryPostProcessor {

    public void Test(){
        log.warn("凸(艹皿艹 )");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Test();
    }


    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {

        Test();

    }
}
